#pragma once

#include <string>
#include <string_view>

namespace ycspice::preprocess {

    class Port;

    class Net {
    public:
        Net(std::string name, Port* connected_port = nullptr) ;

    public:
        auto is_inner() -> bool { return this->_connected_port != nullptr; }
        auto name() const -> std::string_view { return this->_name; }
        auto connected_port() const -> Port* { return this->_connected_port; }

    private:
        std::string _name;
        Port* _connected_port;
    };

}